package com.moju.mapper;

import com.moju.pojo.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

public interface UserMapper {


    public User getUserByUserNameAndPwd(@Param("a") String userName,
                                        @Param("b") String pwd)throws Exception;



    public User getUserById(Integer id)throws Exception;

    public int insertUser(User user)throws Exception;

    public int updateUserById(User user)throws Exception;

    public int deleteUserById(Integer id)throws Exception;

    public int deleteUsersByIds(int[] ids)throws Exception;
}
